package config

type Config struct {
	MysqlConf MysqlConfig `yaml:"mysql"`
	TradeConf TradeConf   `yaml:"trade_config"`
}
type TradeConf struct {
	AppKey       string  `yaml:"app_key"`
	AppSecret    string  `yaml:"app_secret"`
	Profit       float64 `yaml:"profit"`
	Max          float64 `yaml:"max"`
	Min          float64 `yaml:"min"`
	Symbol       string  `yaml:"symbol"`
	Contract     string  `yaml:"contract"`
	ContractType string  `yaml:"contract_type"`
	ContractCode string  `yaml:"contract_code"`
	LeverRate    int     `yaml:"lever_rate"`
	Volume       int64   `yaml:"volume"`
	Smtp         string  `yaml:"smtp"`
	EmailUser    string  `yaml:"email_user"`
	EmailPass    string  `yaml:"email_pass"`
	Port         string  `yaml:"port"`
	MailTo       string  `yaml:"mail_to"`
	CoverTime    int64   `yaml:"cover_time"`
	Direction    string  `yaml:"direction"`
}
type MysqlConfig struct {
	Host string `yaml:"host"`
	User string `yaml:"user"`
	Pwd  string `yaml:"pwd"`
	Port int    `yaml:"port"`
}
